﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChangePwd.aspx.cs" Inherits="ChangePwd" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>用户密码修改</title>
  <link href="~/Styles/Style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .auto-style1 {
            text-align: center;
        }
        .auto-style2 {
            text-align: right;
        }
        .auto-style3 {
            background-color: #33CC33;
        }
    </style>
</head>
<body>
     <p>
        <br />
         <br />
    </p>
  <form id="form1" runat="server">
    <div class="auto-style1">
         <img src="image/logo.png" />
      <table style="border-collapse: collapse;" align="center">
        <tr>
          <td class="auto-style1" colspan="2">修改密码</td>
        </tr>
        <tr>
          <td class="auto-style2">原密码:</td>
          <td>
            <asp:TextBox ID="txtOldPwd" runat="server" TextMode="Password"></asp:TextBox></td>
          <td>
            <asp:RequiredFieldValidator ControlToValidate="txtOldPwd" Display="Dynamic" ForeColor="Red" ID="rfvOldPwd" runat="server" ErrorMessage="必填">
            </asp:RequiredFieldValidator>
          </td>
        </tr>
        <tr>
          <td class="auto-style2">新密码:</td>
          <td>
            <asp:TextBox ID="txtPwd" runat="server" TextMode="Password"></asp:TextBox></td>
          <td>
            <asp:RequiredFieldValidator ControlToValidate="txtPwd" Display="Dynamic" ForeColor="Red" ID="rfvPwd" runat="server" ErrorMessage="必填">
            </asp:RequiredFieldValidator>
          </td>
        </tr>
        <tr>
          <td class="auto-style2">确认新密码:</td>
          <td>
            <asp:TextBox ID="txtPwdAgain" runat="server" TextMode="Password"></asp:TextBox></td>
          <td>
            <asp:RequiredFieldValidator ControlToValidate="txtPwdAgain" Display="Dynamic" ForeColor="Red" ID="rfvPwdAgain" runat="server" ErrorMessage="必填">
            </asp:RequiredFieldValidator>
          </td>
        </tr>
        <tr>
          <td class="auto-style1" colspan="2">
            <asp:CompareValidator ControlToValidate="txtPwdAgain" ControlToCompare="txtPwd" Display="Dynamic" ForeColor="Red" ID="cvPwd" runat="server" ErrorMessage="2次新密码不一致"></asp:CompareValidator>
          </td>
        </tr>
        <tr>
          <td class="auto-style2" colspan="2">
            <asp:Button ID="btnChangePwd" runat="server" Text="确认修改" CssClass="auto-style3" OnClick="BtnChangePwd_Click" />
          </td>
        </tr>
        <tr>
          <td colspan="2" class="auto-style1">
            <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label></td>
        </tr>
      </table>
    </div>
  </form>
</body>
</html>

